var ScrambledEggs;
(function (ScrambledEggs) {
    (function (Utility) {
        var Number = (function () {
            function Number() { }
            Number.Limit = function Limit(n, min, max) {
                return Math.min(max, Math.max(n, min));
            };
            Number.Random = function Random(minInclusive, maxExclusive, seed) {
                if (typeof seed === "undefined") { seed = Math.round(Math.random() * new Date().getTime()); }
                return seed % (maxExclusive - minInclusive) + minInclusive;
            };
            return Number;
        })();
        Utility.Number = Number;        
    })(ScrambledEggs.Utility || (ScrambledEggs.Utility = {}));
    var Utility = ScrambledEggs.Utility;
})(ScrambledEggs || (ScrambledEggs = {}));
